Package org.openquark.cal_Cal_Utilities_DirectedGraph

Source Code of org.openquark.cal_Cal_Utilities_DirectedGraph._lambda__map__1

package org.openquark.cal_Cal_Utilities_DirectedGraph;

import org.openquark.cal.internal.runtime.lecc.RTData;
import org.openquark.cal.internal.runtime.lecc.RTExecutionContext;
import org.openquark.cal.internal.runtime.lecc.RTOApp3;
import org.openquark.cal.internal.runtime.lecc.RTRecordSelection;
import org.openquark.cal.internal.runtime.lecc.RTRecordValue;
import org.openquark.cal.internal.runtime.lecc.RTResultFunction;
import org.openquark.cal.internal.runtime.lecc.RTSupercombinator;
import org.openquark.cal.internal.runtime.lecc.RTValue;
import org.openquark.cal.runtime.CALExecutorException;

public final class _lambda__map__1 extends RTSupercombinator {
  /*
   * CAL data instances for literal values.
   */

  private static final RTData.CAL_Int $L1_Int_0 = RTData.CAL_Int.make(0);

  /**
   * Singleton instance of this class.
   */
  public static final _lambda__map__1 $instance = new _lambda__map__1();

  private _lambda__map__1() {
  }

  public final int getArity() {
    return 3;
  }

  public final java.lang.String getModuleName() {
    return "Cal.Utilities.DirectedGraph";
  }

  public final java.lang.String getUnqualifiedName() {
    return "$lambda$map$1";
  }

  public final java.lang.String getQualifiedName() {
    return "Cal.Utilities.DirectedGraph.$lambda$map$1";
  }

  /**
   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$map$1
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue p = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue entry = ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue $dictvarCal_Core_Prelude_Eq_44 =
      $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f3S(
        RTValue.lastRef(
          $dictvarCal_Core_Prelude_Eq_44,
          $dictvarCal_Core_Prelude_Eq_44 = null),
        RTValue.lastRef(entry.evaluate($ec), entry = null),
        RTValue.lastRef(p, p = null),
        $ec);
  }

  /**
   * f3L
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$map$1
   */
  public final RTValue f3L(RTValue $dictvarCal_Core_Prelude_Eq_44, RTValue entry, RTValue p, RTExecutionContext $ec) throws CALExecutorException {
    return
      f3S(
        RTValue.lastRef(
          $dictvarCal_Core_Prelude_Eq_44,
          $dictvarCal_Core_Prelude_Eq_44 = null),
        RTValue.lastRef(entry.evaluate($ec), entry = null),
        RTValue.lastRef(p, p = null),
        $ec);
  }

  /**
   * f3S
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$map$1
   */
  public final RTValue f3S(RTValue $dictvarCal_Core_Prelude_Eq_44, RTValue entry, RTValue p, RTExecutionContext $ec) throws CALExecutorException {
    // Top level supercombinator logic
    return
      new RTOApp3(
        $dictvarCal_Core_Prelude_Eq_44,
        _lambda__map__1.$L1_Int_0,
        new RTRecordSelection.Ordinal(p, 2),
        (((RTRecordValue)(java.lang.Object)
          entry.getValue())).getOrdinalFieldValue(
          2));
  }

  /**
   * fUnboxed3S
   * This method implements the logic of the CAL function Cal.Utilities.DirectedGraph.$lambda$map$1
   * This version of the logic returns an unboxed value.
   */
  public final boolean fUnboxed3S(RTValue $dictvarCal_Core_Prelude_Eq_44, RTValue entry, RTValue p, RTExecutionContext $ec) throws CALExecutorException {
    // Top level supercombinator logic
    return
      (new RTOApp3(
        $dictvarCal_Core_Prelude_Eq_44,
        _lambda__map__1.$L1_Int_0,
        new RTRecordSelection.Ordinal(p, 2),
        (((RTRecordValue)(java.lang.Object)
          entry.getValue())).getOrdinalFieldValue(
          2))).evaluate(
        $ec).getBooleanValue();
  }

}
TOP

Related Classes of org.openquark.cal_Cal_Utilities_DirectedGraph._lambda__map__1

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.